﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace BuildingDrawer
{
    public class E_PointFrame
    {
        private float m_timestamp;
        //public List<E_Point> m_points;
        
        public Hashtable m_points;

        public E_PointFrame(float in_time)
        {
            m_timestamp = in_time;
            m_points = new Hashtable();
        }

        public void AddPoint(E_Point p_in)
        {
            m_points.Add(p_in.id, p_in);
        }

        public float getTime() { return m_timestamp; }
        
        //public E_Point GetPoint(int index)
        //{
        //    return m_points.ElementAt(index);
        //}

        public E_Point GetPointFromId(int id_in)
        {
            return (E_Point)m_points[id_in];
        }
    }
}
